﻿using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using Sqo;

namespace EDMD
{

    /// [Generated Jan 31 2011]
    [Serializable()]
    public partial class i_vw_Appointment_Summary : Utils, ISqoDataObject
    {

        #region "private fields"

        private int _CalendarItem_ID;
        private string _Salutation;
        private string _FirstName;
        private string _MiddleName;
        private string _LastName;
        private string _Verb;
        private string _Entry_Name;
        private DateTime _Start_Date;
        private DateTime _End_Date;
        private int _Status_ID;

        #endregion

        #region "public properties"

        public int CalendarItem_ID
        {
            get { return _CalendarItem_ID; }
            set { _CalendarItem_ID = value; }
        }
        public string Salutation
        {
            get { return _Salutation; }
            set { _Salutation = value; }
        }
        public string FirstName
        {
            get { return _FirstName; }
            set { _FirstName = value; }
        }
        public string MiddleName
        {
            get { return _MiddleName; }
            set { _MiddleName = value; }
        }
        public string LastName
        {
            get { return _LastName; }
            set { _LastName = value; }
        }
        public string Verb
        {
            get { return _Verb; }
            set { _Verb = value; }
        }
        public string Entry_Name
        {
            get { return _Entry_Name; }
            set { _Entry_Name = value; }
        }
        public DateTime Start_Date
        {
            get { return _Start_Date; }
            set { _Start_Date = value; }
        }
        public DateTime End_Date
        {
            get { return _End_Date; }
            set { _End_Date = value; }
        }
        public int Status_ID
        {
            get { return _Status_ID; }
            set { _Status_ID = value; }
        }

        #endregion


        #region "ISqoDataObject"
        object ISqoDataObject.GetValue(System.Reflection.FieldInfo field) { return field.GetValue(this); }
        void ISqoDataObject.SetValue(System.Reflection.FieldInfo field, object value) { field.SetValue(this, value); }

        int ISqoDataObject.OID { get { return CalendarItem_ID; } set { } }
        #endregion
    }


    public partial class s_vw_Appointment_Summary : i_vw_Appointment_Summary
    {
        #region "MAPPER"
        public static EDMD.i_vw_Appointment_Summary Convert(vw_Appointment_Summary od_vw_Appointment_Summary)
        {
            return new EDMD.i_vw_Appointment_Summary()
            {

                CalendarItem_ID = IsNull(od_vw_Appointment_Summary.CalendarItem_ID),
                Salutation = IsNull(od_vw_Appointment_Summary.Salutation),
                FirstName = IsNull(od_vw_Appointment_Summary.FirstName),
                MiddleName = IsNull(od_vw_Appointment_Summary.MiddleName),
                LastName = IsNull(od_vw_Appointment_Summary.LastName),
                Verb = IsNull(od_vw_Appointment_Summary.Verb),
                Entry_Name = IsNull(od_vw_Appointment_Summary.Entry_Name),
                Start_Date = IsNull(od_vw_Appointment_Summary.Start_Date),
                End_Date = IsNull(od_vw_Appointment_Summary.End_Date),
                Status_ID = IsNull(od_vw_Appointment_Summary.Status_ID),

            };
        }
        #endregion
    }
}

